package com.manager.enterprise.module.platform.core.dao;

import com.manager.commons.mybatis.annotation.MyBatisDao;
import com.manager.commons.mybatis.dao.GenericDao;
import com.manager.enterprise.module.entity.DateLoginUser;
import com.manager.enterprise.module.entity.FileDataInfo;
import com.manager.enterprise.module.entity.FileTotalNumber;
import com.manager.enterprise.module.platform.core.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * PlatformUserDao
 *
 * @author H
 * @version 1.0
 */
@MyBatisDao
public interface PlatformUserDao extends GenericDao<UserInfo> {

    UserInfo login(Map<String, Object> map);

    int updatePwd(Map<String, Object> map);

    String findPwd(Map<String, Object> map);

    Map<String, Object> findAccountView(Map<String, Object> map);

    //总用户数
    FileDataInfo userNumber(@Param("creator") String userid);

    //查询所有目录
    List<String> dirUserAndRoot(@Param("creator") String userid);

    FileTotalNumber fileTypeTotal(@Param("creator") String userid);

    List<DateLoginUser> dateLoginUserNumber(Map<String, Object> map);
}